# -*- coding: UTF-8 -*-

import unittest

from model.gamestate import *
from quick_game_settings import QuickGameSettings
from presenter_mock import PresenterMock


MINTIME = 5
MAXTIME = 300
MINWORDS = 5
MAXWORDS = 60
MINPLAYERS = 2
MAXPLAYERS = 16
DEFAULTTIME = 20
DEFAULTWORDS = 10
DEFAULTPLAYERS = 6


def bound(x, min, max):
    if x > max:
        return max
    if x < min:
        return min
    return x


class QuickGameSettingsTest(unittest.TestCase):
    def setUp(self):
        self.gamestate = None
        self.PlayerCount = 10
        self.PlayerWordCount = 30
        self.presenter = PresenterMock(Phase.FROM_TO)
        self.gamestate = GameState(None, None, None, None, None, None, None)


if __name__ == '__main__':
    unittest.main()
